package com.yuke.cloud.service.uac.dao;

import com.yuke.cloud.common.core.mybatis.MyMapper;
import com.yuke.cloud.service.uac.entity.AccRolePermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AccRolePermissionMapper extends MyMapper<AccRolePermission> {

    /**
     * Batch delete by id list int.
     *
     * @param deleteIdList the delete id list
     *
     * @return the int
     */
    int batchDeleteByPermissionIdList(@Param("idList") List<Long> deleteIdList);

    /**
     * Gets checked action list.
     *
     * @param roleId the role id
     *
     * @return the checked action list
     */
    List<Long> getCheckedPermissionList(@Param("roleId") Long roleId);

    List<String> getPermissionUrlListByRoleIds(@Param("idList") List<Long> roleIdList);
}